<template>
  <div class="box">
      <div class="list">
            <a v-bind:href="this.href">
                <img src="./img/khm.png" alt="">
            </a>
      </div>
  </div>
</template>
<script>
export default {
    data(){
      return {
        href:""
      }
    },
    created(){
        this.pan()
    },
    methods:{
        pan(){
          var u = navigator.userAgent;
          var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
          var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
          if(isAndroid==true){
              this.href='http://a.app.qq.com/o/simple.jsp?pkgname=com.yqlh.zhuji'
          }else if(isiOS==true){
              this.href='https://itunes.apple.com/cn/app/%E5%BC%80%E5%90%8E%E9%97%A8/id1396464384?mt=8'
          }
        }
    }
}
</script>
<style lang="scss" scoped>
.box{
  width:100%;
  height:100%;
  position:fixed;
  .list{
    width:100%;
    height:100%;
    overflow:hidden;
    overflow-y: scroll;
    img{
      width:100%;
    }
  }
}
</style>
